home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat4 / pod.z / pod
Encoding:
Text File  |  2002-10-03  |  46.8 KB  |  859 lines

  1.  
  2.  
  3.  
  4. PPPPOOOODDDD((((4444))))                           IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                            PPPPOOOODDDD((((4444))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      pod - Printer Object Database (POD) file formats
  10.  
  11. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  12.      This manual page details the formats for the Printer Object Database
  13.      (POD) files. The POD contains information on the current configuration,
  14.      status and job history of a single printer. Each printer physically
  15.      installed on a system maintains its own POD. An initial set of POD files
  16.      is created by the printer driver developer and installed on the system.
  17.      This initial set of POD files must include a config file representing the
  18.      capabilities of the printer, a status file indicating a typical printing
  19.      state and an empty log file. All subsequent interaction with the POD is
  20.      done through the _l_i_b_p_o_d(_3) API. The API provides network transparent,
  21.      mediated access to the POD files.
  22.  
  23.      A Printer Object Database consists of three separate ASCII text files.
  24.      There is one set of these files for each printer physically installed on
  25.      a system.  The name of each POD file is formed from the printer name and
  26.      the suffix ._c_o_n_f_i_g, ._s_t_a_t_u_s and ._l_o_g, respectively. All POD files are
  27.      located in the directory ////vvvvaaaarrrr////ssssppppoooooooollll////llllpppp////ppppoooodddd. The information contained in
  28.      each file is summarized below and explained in detail in subsequent
  29.      sections.
  30.  
  31.      <<<<pppprrrriiiinnnntttteeeerrrr nnnnaaaammmmeeee>>>>....ccccoooonnnnffffiiiigggg
  32.                     This file contains detailed information on the printer's
  33.                     capabilities.  The file is created by the driver developer
  34.                     to characterize the printer's capabilities. For example,
  35.                     the possible paper sizes, printer location and available
  36.                     fonts are all specified in this file.  Typically the
  37.                     information in the config file does not change over time.
  38.                     Printer filters and drivers treat the config file as
  39.                     read-only.  The printer install tools may modify the
  40.                     config file at printer installation time to enter site
  41.                     specific information (e.g. printer location) or note the
  42.                     presence of optional equipment (e.g. duplex option or
  43.                     envelope feeder).
  44.  
  45.      <<<<pppprrrriiiinnnntttteeeerrrr nnnnaaaammmmeeee>>>>....ssssttttaaaattttuuuussss
  46.                     This file contains information about the current
  47.                     operational status of the printer. The information in the
  48.                     file indicates whether the printer is busy, what type of
  49.                     printing media is installed, and so on. The contents of
  50.                     this file change during every print job. While the driver
  51.                     developer provides an initial copy of the status file, it
  52.                     is the job of the driver to update the file. Typically,
  53.                     printer filter programs treat the status file as read-
  54.                     only.
  55.  
  56.      <<<<pppprrrriiiinnnntttteeeerrrr nnnnaaaammmmeeee>>>>....lllloooogggg
  57.                     This file contains the print job history for the printer.
  58.                     Information for old jobs as well as the current print job
  59.                     is maintained. Typically, printer filters and drivers
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. PPPPOOOODDDD((((4444))))                           IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                            PPPPOOOODDDD((((4444))))
  71.  
  72.  
  73.  
  74.                     append information to the log file while general
  75.                     applications treat the file as read-only.
  76.  
  77. GGGGEEEENNNNEEEERRRRAAAALLLL SSSSYYYYNNNNTTTTAAAAXXXX
  78.    CCCChhhhaaaarrrraaaacccctttteeeerrrr SSSSeeeetttt
  79.      <space>:       0x09, 0x20 (<sp>, <ht>)
  80.      <null>:        0x00-0x08, 0x0B, 0x0C, 0x0E-0x1F, 0x7F-0xFF
  81.      <endline>:     0x0A, 0x0D (<nl>, <cr>)
  82.      <separator>:   0x7C ('|')
  83.      <plainchar>:   0x21-0x7B, 0x7D, 0x7E
  84.      <ddigit>:      0x30-0x39 ('0'-'9')
  85.      <hdigit>:      <ddigit>, 0x41-0x46, 0x61-0x66
  86.                     ('0'-'9', 'A'-'F', 'a'-'f')
  87.      <sign>:        0x2B, 0x2D ('+', '-')
  88.      <point>:       0x2E ('.')
  89.  
  90.    FFFFiiiieeeelllldddd FFFFoooorrrrmmmmaaaatttt
  91.      <white>:      <space> [<space>...]
  92.      <word>:       <plainchar> [<plainchar>...]
  93.      <keyword>:    <word> with a specific sequence of <plainchar>
  94.      <keyfield>:   [<white>] <keyword> [[<white> <keyword>]...] [<white>]
  95.      <string>:     [<white>] <word> [[<white> <word>]...] [<white>]
  96.      <int>:        <ddigit> [<ddigit>...]
  97.      <hbyte>:      ["0x" | "0X"] [<hdigit>] <hdigit>
  98.      <float>:      [<sign>] <int> [<point> [<int>]]
  99.                    or
  100.                    [<sign>] <point> <int>
  101.      <array>:      <string> [[<separator> <string>]...]
  102.  
  103. IIIINNNNPPPPUUUUTTTT PPPPAAAARRRRSSSSIIIINNNNGGGG RRRRUUUULLLLEEEESSSS
  104.      The following rules apply when a POD file is parsed by the _l_i_b_p_o_d API.
  105.  
  106.      +o  All <null> characters are ignored; their use is not recommended. This
  107.         provision is intended to avoid errors caused by non-printing
  108.         characters appearing in the POD files.
  109.  
  110.      +o  All input lines are truncated to PPPPDDDD____SSSSTTTTRRRR____MMMMAAAAXXXX-1, not counting <null>
  111.         characters and <endline>, which are removed on input. The value of
  112.         PPPPDDDD____SSSSTTTTRRRR____MMMMAAAAXXXX is defined in the header file /_u_s_r/_i_n_c_l_u_d_e/_p_o_d._h.
  113.  
  114.      +o  All occurrences of <white> sequences are reduced to a single <sp>
  115.         character.  In addition, <white> appearing at the beginning or end of
  116.         a field is removed.
  117.  
  118.      +o  There are no quoted strings. Quotation marks are treated like any
  119.         other character, and cannot be used to force additional <white> into a
  120.         field.
  121.  
  122.      +o  All fields are checked for correct syntax based on entry type. Failure
  123.         to provide information in the correct format will result in improper
  124.         parsing.
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. PPPPOOOODDDD((((4444))))                           IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                            PPPPOOOODDDD((((4444))))
  137.  
  138.  
  139.  
  140.      +o  When scanning for <int> or <float> numbers within a field, all
  141.         characters that are not valid within an <int> or <float> are treated
  142.         as <white> (in the case of an <int>, <sign> and <point> are treated as
  143.         <white>). This allows characters to be inserted to improve
  144.         readability. For example, the following are equivalent if two <int>
  145.         items are expected:
  146.  
  147.         300 300
  148.         300 x 300
  149.         300 by 300
  150.         300,300
  151.  
  152.  
  153.      +o  Entries containing no characters other than <white> prior to the first
  154.         <separator> or <endline> are treated as null entries and discarded
  155.         without error. These lines may be used as comments simply by placing a
  156.         <separator> prior to any other information.
  157.  
  158.      +o  Blank lines are ignored and may be inserted to improve readability.
  159.  
  160.      +o  <keyfield> matching is done in a case independent manner.
  161.  
  162.      +o  Fields designed to be human readable are not modified, except to
  163.         remove <null> and excess <white>. Case and all <plainchar> sequences
  164.         are preserved.
  165.  
  166.      +o  A <keyfield> may require a long list of items (e.g. Available Fonts).
  167.         To improve readability and avoid the risk of input line buffer
  168.         overflow, these <keyfield> may be repeated. For example, a list of
  169.         fifty Available Fonts items may be broken into two Available Fonts
  170.         entries with 25 items each.  The overall number of items that can be
  171.         specified in a list is limited only by available system memory
  172.         resources.
  173.  
  174.      +o  There is no required entry order. The <keyfield> entries may appear in
  175.         any order within a POD file.
  176.  
  177.      +o  Default values are assumed for certain fields if values have not been
  178.         specified. The values of these defaults should not be relied upon and
  179.         may change in future releases.
  180.  
  181. CCCCOOOONNNNFFFFIIIIGGGG FFFFIIIILLLLEEEE FFFFOOOORRRRMMMMAAAATTTT
  182.      This section describes the printer configuration file format. The
  183.      configuration file is installed in /_v_a_r/_s_p_o_o_l/_l_p/_p_o_d with the name
  184.      <_p_r_i_n_t_e_r _n_a_m_e>._c_o_n_f_i_g.
  185.  
  186.      The general format for config file entries is:
  187.  
  188.      <keyfield> <separator> [<infofield>] <endline>
  189.  
  190.      where <infofield> is specified in the table below. The SSSSiiiizzzzeeee TTTTaaaabbbblllleeee EEEEnnnnttttrrrryyyy
  191.      <infofield> has the format <sizeentry> defined as:
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. PPPPOOOODDDD((((4444))))                           IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                            PPPPOOOODDDD((((4444))))
  203.  
  204.  
  205.  
  206.      <sizeentry>:   <keyword> <int> <int> <float> <float> <float> <float>
  207.                                            [<hbyte> [<hbyte>]]
  208.  
  209.  
  210.      All entries in the config file are optional. Entries that are not
  211.      provided or that have no <infofield> specified will be assigned default
  212.      values. However, since printer capabilities differ, it is recommended
  213.      that entries be omitted and defaults be used only for entries that are
  214.      truly inapplicable (e.g. manual feed or quality modes).
  215.  
  216.           KKKKeeeeyyyy FFFFiiiieeeelllldddd            <<<<iiiinnnnffffooooffffiiiieeeelllldddd>>>>              DDDDeeeeffffaaaauuuulllltttt
  217.           _______________________________________________________________
  218.           PPPPrrrriiiinnnntttteeeerrrr CCCCllllaaaassssssss        <keyword>                Dumb
  219.           PPPPrrrriiiinnnntttteeeerrrr MMMMooooddddeeeellll        <string>                 Unknown
  220.           PPPPrrrriiiinnnntttteeeerrrr OOOOppppttttiiiioooonnnnssss      <string>                 (empty string)
  221.           TTTTeeeecccchhhhnnnnoooollllooooggggyyyy           <string>                 Unknown
  222.           LLLLooooccccaaaattttiiiioooonnnn CCCCooooddddeeee        <keyword>                NONE
  223.           PPPPhhhhyyyyssssiiiiccccaaaallll LLLLooooccccaaaattttiiiioooonnnn    <string>                 Unknown
  224.           DDDDrrrriiiivvvveeeerrrr PPPPaaaatttthhhh          <word>                   (see description)
  225.           PPPPoooorrrrtttt PPPPaaaatttthhhh            <word>                   /dev/null
  226.           AAAAccccttttiiiivvvveeee SSSSttttaaaattttuuuussss PPPPaaaatttthhhh   <word>                   (see description)
  227.           EEEErrrrrrrroooorrrr RRRReeeettttrrrryyyy WWWWaaaaiiiitttt     <int>                    10
  228.           SSSSttttaaaattttuuuussss UUUUppppddddaaaatttteeee WWWWaaaaiiiitttt   <int>                    300
  229.           MMMMeeeeddddiiiiaaaa WWWWaaaaiiiitttt           <int>                    300
  230.           RRRReeeessssoooolllluuuuttttiiiioooonnnn           <int> <int>              300 300
  231.           MMMMiiiinnnniiiimmmmuuuummmm PPPPrrrriiiinnnntttt AAAArrrreeeeaaaa   <float> <float>          (see description)
  232.           MMMMaaaaxxxxiiiimmmmuuuummmm PPPPrrrriiiinnnntttt AAAArrrreeeeaaaa   <float> <float>          (see description)
  233.           MMMMiiiinnnniiiimmmmuuuummmm AAAAddddddddrrrr         <int> <int>              (see description)
  234.           MMMMaaaaxxxxiiiimmmmuuuummmm AAAAddddddddrrrr         <int> <int>              (see description)
  235.           CCCCoooosssstttt ppppeeeerrrr PPPPaaaaggggeeee        <float>                  0.0
  236.           TTTTiiiimmmmeeee ppppeeeerrrr PPPPaaaaggggeeee        <int> [<int>]            0 0
  237.           NNNNuuuummmmbbbbeeeerrrr ooooffff CCCCoooolllloooorrrrssss     <int> [<int>]            1 1
  238.           QQQQuuuuaaaalllliiiittttyyyy MMMMooooddddeeeessss        <array>                  (0 elements)
  239.           DDDDeeeeffffaaaauuuulllltttt QQQQMMMM           <int>                    0
  240.           MMMMaaaannnnuuuuaaaallll CCCCaaaappppaaaabbbblllleeee       <keyword>                No
  241.           BBBBllllaaaacccckkkk SSSSuuuubbbbssssttttiiiittttuuuutttteeee     <keyword>                No
  242.           MMMMeeeeddddiiiiaaaa SSSSttttaaaannnnddddaaaarrrrdddd       <keyword>                American
  243.           AAAAvvvvaaaaiiiillllaaaabbbblllleeee FFFFoooonnnnttttssss      <array>                  (0 elements)
  244.           IIIInnnnppppuuuutttt SSSSoooouuuurrrrcccceeee         <array>                  (0 elements)
  245.           DDDDeeeeffffaaaauuuulllltttt IIIISSSS           <int> [,gamma=<float>]   0, gamma=-1.0
  246.           CCCCoooolllloooorrrr AAAAddddjjjjuuuussssttttmmmmeeeennnntttt     <array>                  (0 elements)
  247.           DDDDeeeeffffaaaauuuulllltttt CCCCAAAA           <int>                    0
  248.           MMMMeeeeddddiiiiaaaa TTTTyyyyppppeeee           <array>                  (0 elements)
  249.           DDDDeeeeffffaaaauuuulllltttt MMMMTTTT           <int>                    0
  250.           SSSSiiiizzzzeeee TTTTaaaabbbblllleeee EEEEnnnnttttrrrryyyy     <sizeentry>              (see description)
  251.  
  252.      _P_r_i_n_t_e_r _C_l_a_s_s       Keyword specifying the class of printer. Available
  253.                          values are:
  254.  
  255.                          DDDDuuuummmmbbbb
  256.                          RRRRaaaasssstttteeeerrrr
  257.                          CCCCoooolllloooorrrrRRRRaaaasssstttteeeerrrr
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. PPPPOOOODDDD((((4444))))                           IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                            PPPPOOOODDDD((((4444))))
  269.  
  270.  
  271.  
  272.                          CCCCoooolllloooorrrrPPPPoooossssttttSSSSccccrrrriiiipppptttt
  273.                          MMMMoooonnnnooooPPPPoooossssttttSSSSccccrrrriiiipppptttt
  274.                          PPPPllllooootttttttteeeerrrr
  275.  
  276.                          Obsolete values are:
  277.  
  278.                          DDDDuuuummmmbbbbCCCCoooolllloooorrrr
  279.                          CCCCoooolllloooorrrr
  280.                          PPPPoooossssttttSSSSccccrrrriiiipppptttt
  281.  
  282.  
  283.      _P_r_i_n_t_e_r _M_o_d_e_l       Manufacturer's description of the printer. For
  284.                          example, _T_e_k_t_r_o_n_i_x _P_h_a_s_e_r _I_I _S_X or _A_p_p_l_e _L_a_s_e_r_W_r_i_t_e_r
  285.                          _I_I _N_T_X.
  286.  
  287.      _P_r_i_n_t_e_r _O_p_t_i_o_n_s     Installed printer options. For example, _8 _M_b_y_t_e_s _R_A_M.
  288.  
  289.      _T_e_c_h_n_o_l_o_g_y          Printing technology. For example, _i_n_k _j_e_t, _w_a_x
  290.                          _t_r_a_n_s_f_e_r, _d_y_e _s_u_b_l_i_m_a_t_i_o_n, _c_o_l_o_r _l_a_s_e_r.
  291.  
  292.      _L_o_c_a_t_i_o_n _C_o_d_e       Site specific keyword identifying the printers
  293.                          physical location. For example, 3333UUUU----999922224444.
  294.  
  295.      _P_h_y_s_i_c_a_l _L_o_c_a_t_i_o_n   Human-readable description of printer's physical
  296.                          location. For example, _B_l_d_g. _3 _U_p_p_e_r, _R_o_o_m _9_2_4.
  297.  
  298.      _D_r_i_v_e_r _P_a_t_h         Full pathname of printer driver. The default value
  299.                          for this entry is the full pathname of the POD config
  300.                          file with the suffix ._c_o_n_f_i_g removed.
  301.  
  302.      _P_o_r_t _P_a_t_h           Full pathname of the I/O port to which the printer is
  303.                          physically connected.  For example, /_d_e_v/_p_l_p for a
  304.                          parallel printer, /_d_e_v/_t_t_y_d_2 for a serial printer and
  305.                          /_d_e_v/_s_c_s_i/_s_c_0_d_6_l_0 for a SCSI printer.
  306.  
  307.      _A_c_t_i_v_e _S_t_a_t_u_s _P_a_t_h  Full pathname of the POD status file. The value of
  308.                          this entry is not used by the _l_i_b_p_o_d API. The value
  309.                          of this entry is always set by the API to
  310.                          PPPPDDDDppppoooodddd____ppppaaaatttthhhh/<printer name>.status. Refer to the
  311.                          _l_i_b_p_o_d(_3) man page for additional information.
  312.  
  313.      _E_r_r_o_r _R_e_t_r_y _W_a_i_t    Number of seconds to wait after an before attempting
  314.                          to resume printing after an error has occurred.
  315.  
  316.      _S_t_a_t_u_s _U_p_d_a_t_e _W_a_i_t  Number of seconds to between updates of the POD
  317.                          status file when no error has occurred.
  318.  
  319.      _M_e_d_i_a _W_a_i_t          Number of seconds to wait for manual feed or print
  320.                          media changes before default media source is used.
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. PPPPOOOODDDD((((4444))))                           IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                            PPPPOOOODDDD((((4444))))
  335.  
  336.  
  337.  
  338.      _R_e_s_o_l_u_t_i_o_n          Maximum horizontal and vertical printer resolution in
  339.                          dots per inch (dpi).  For printers that allow
  340.                          multiple resolutions, the status file _P_r_i_n_t_e_r _O_p_t_i_o_n_s
  341.                          entry should be parsed for the CCCCuuuurrrrrrrreeeennnnttttRRRReeeessss keyword.
  342.                          This keyword indicates the current printer
  343.                          resolution. If the keyword is not found, the config
  344.                          file _R_e_s_o_l_u_t_i_o_n entry should be used.
  345.  
  346.      _M_i_n_i_m_u_m _P_r_i_n_t _A_r_e_a, _M_a_x_i_m_u_m _P_r_i_n_t _A_r_e_a
  347.                          Minimum and maximum printable area dimensions
  348.                          expressed in inches. The default values for these
  349.                          entries assume an A size page (8.5 by 11.0 inches) in
  350.                          portrait orientation with 0.5 inch margins. This
  351.                          gives a printable area of 7.5 by 10.0 inches (i.e.
  352.                          _7._5 _1_0._0). The minimum and maximum values are
  353.                          identical in the default case. If a Page Size Table
  354.                          has been specified, the values for this entry are
  355.                          derived from it.
  356.  
  357.      _M_i_n_i_m_u_m _A_d_d_r, _M_a_x_i_m_u_m _A_d_d_r
  358.                          Minimum and maximum printable area dimensions
  359.                          expressed in dots. The default values for these
  360.                          entries assume an A size page (8.5 by 11.0 inches) in
  361.                          portrait orientation with 0.5 inch margins. At 300
  362.                          dpi this gives a printable area of 2250 by 3000 dots.
  363.                          The minimum and maximum values are identical in the
  364.                          default case. If a Page Size Table has been
  365.                          specified, the values for this entry are derived from
  366.                          it.
  367.  
  368.      _C_o_s_t _p_e_r _P_a_g_e       Cost per printed page in local currency. For example,
  369.                          _0._5_0 for 50 cents per page.
  370.  
  371.      _T_i_m_e _p_e_r _P_a_g_e       The average and, optionally, maximum time to print a
  372.                          page, in seconds.  If the maximum time is not
  373.                          provided, it is assumed to be the same as the average
  374.                          time.
  375.  
  376.      _N_u_m_b_e_r _o_f _C_o_l_o_r_s    The minimum and, optionally, maximum number of colors
  377.                          that are available on the printer. If the maximum
  378.                          number of colors is not provided, it is assumed to be
  379.                          the same as the minimum. A monochrome printer or
  380.                          printer ribbon would provide one color. A CMY printer
  381.                          or ribbon would provide three colors. Note that this
  382.                          field should contain only the number of colors
  383.                          available on the printer. The colorspace, depth and
  384.                          data format are provided in the _N_u_m_b_e_r _o_f _C_o_l_o_r_s
  385.                          entry in the status file.
  386.  
  387.      _Q_u_a_l_i_t_y _M_o_d_e_s       A list of output quality modes available on the
  388.                          printer. For example, _d_r_a_f_t, and _l_e_t_t_e_r.
  389.  
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. PPPPOOOODDDD((((4444))))                           IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                            PPPPOOOODDDD((((4444))))
  401.  
  402.  
  403.  
  404.      _D_e_f_a_u_l_t _Q_M          The index into the _Q_u_a_l_i_t_y _M_o_d_e_s list indicating the
  405.                          default quality mode. This index is based at one
  406.                          rather than zero. Thus, the first quality mode in the
  407.                          list is at position 1, the second at 2, and so on. If
  408.                          there are no quality modes specified, this entry
  409.                          should either be left empty or set to 0.
  410.  
  411.      _M_a_n_u_a_l _C_a_p_a_b_l_e      Keyword yyyyeeeessss indicating that the printer is capable of
  412.                          being manually fed or nnnnoooo indicating that it is not.
  413.                          Note that for a printer to be considered manual
  414.                          capable its driver must support manual feeding (the
  415.                          -m driver option in the Impressario Filter/Driver
  416.                          Specification) in addition to the printer hardware
  417.                          allowing manual feed.
  418.  
  419.      _B_l_a_c_k _S_u_b_s_t_i_t_u_t_e    Keyword yyyyeeeessss indicating that the printer should
  420.                          substitute true black for composite black or nnnnoooo
  421.                          indicating that it should not.
  422.  
  423.      _M_e_d_i_a _S_t_a_n_d_a_r_d      Keyword indicating the paper measurement standard.
  424.                          Keywords are AAAAmmmmeeeerrrriiiiccccaaaannnn or MMMMeeeettttrrrriiiicccc.
  425.  
  426.      _A_v_a_i_l_a_b_l_e _F_o_n_t_s     This entry contains a list of font names representing
  427.                          the fonts available on the printer.
  428.  
  429.                          For printers with built-in PostScript interpreters
  430.                          this list should include only those fonts built into
  431.                          the printer (typically a set of 35 standard fonts).
  432.  
  433.                          For raster printers the PostScript interpretation is
  434.                          performed on the printer host machine. Thus, the
  435.                          fonts listed for these printers should correspond to
  436.                          the names of the font outline files installed on the
  437.                          printer host. There are two methods for specifying
  438.                          the font names. The names can be listed individually
  439.                          or a full path to the directory where the outline
  440.                          fonts are stored can be specified. The two methods
  441.                          can be mixed.  When a directory is specified, the
  442.                          names of the files in that directory are assumed to
  443.                          be the names of the fonts. To exclude filenames from
  444.                          the directory, specify the name of the file to be
  445.                          excluded with a leading '!'. The filenames to exclude
  446.                          must appear on the same line as the directory
  447.                          containing the filename to be excluded. The following
  448.                          is a valid Available Fonts list:
  449.  
  450.                          NewYearRoman | /usr/fonts | !fonts.dir
  451.  
  452.                          This entry indicates that the fonts available on the
  453.                          printer are NewYearRoman and all filenames in the
  454.                          directory /_u_s_r/_f_o_n_t_s with the exception of fonts.dir.
  455.                          Note that font names must not contain any whitespace.
  456.  
  457.  
  458.  
  459.                                                                         PPPPaaaaggggeeee 7777
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. PPPPOOOODDDD((((4444))))                           IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                            PPPPOOOODDDD((((4444))))
  467.  
  468.  
  469.  
  470.                          To logically AND a list of font names, specify the
  471.                          name of the file or directory (to AND with) using a
  472.                          leading '&'.  This is useful when supporting a
  473.                          printer with built-in PostScript.  In this case, you
  474.                          would list the fonts supported by the printer and
  475.                          then logically AND that list against the fonts
  476.                          installed on the system.  The result is a list of
  477.                          valid fonts that can be used with utilities like
  478.                          text2ps(1) which are also supported by the printer
  479.                          (text2ps(1) requires the font metric be installed on
  480.                          the system so it can generate page and line breaks
  481.                          correctly).  The following is a valid Available Fonts
  482.                          list:
  483.  
  484.                          NewYearRoman | &/usr/lib/DPS/AFM
  485.  
  486.                          This simple example indicates that the font available
  487.                          on the printer is NewYearRoman and it should be used
  488.                          if the corresponding font is found in
  489.                          /usr/lib/DPS/AFM.
  490.  
  491.      _I_n_p_u_t _S_o_u_r_c_e        A list of printer input sources. The primary use of
  492.                          this entry is to list the image source devices that
  493.                          have been characterized for printer color correction.
  494.                          A common input device would be the monitor. An
  495.                          Example entry is _S_o_n_y _1_6" _M_o_n_i_t_o_r.
  496.  
  497.      _D_e_f_a_u_l_t _I_S          The index into the _I_n_p_u_t _S_o_u_r_c_e list indicating the
  498.                          default input source. This index is based at one
  499.                          rather than zero. Thus, the first source in the list
  500.                          is at position 1, the second at 2, and so on. If
  501.                          there are no input sources specified, this entry
  502.                          should either be left empty or set to 0. When used
  503.                          for printer color correction, this entry can also be
  504.                          used to specify the default device's gamma correction
  505.                          value. The gamma value is specified after the default
  506.                          input source index as in the following example:
  507.  
  508.                          1, gamma = 1.000
  509.  
  510.      _C_o_l_o_r _A_d_j_u_s_t_m_e_n_t    A list of color adjustment methods available for the
  511.                          printer. The color adjustment methods perform color
  512.                          correction between the current input source and the
  513.                          printer.  An example entry is:
  514.  
  515.                          None | Fix Blue | Gamma Correct
  516.  
  517.      _D_e_f_a_u_l_t _C_A          The index into the _C_o_l_o_r _A_d_j_u_s_t_m_e_n_t list indicating
  518.                          the default adjustment method. This index is based at
  519.                          one rather than zero. Thus, the first method in the
  520.                          list is at position 1, the second at 2, and so on. If
  521.                          there are no adjustment methods specified, this entry
  522.  
  523.  
  524.  
  525.                                                                         PPPPaaaaggggeeee 8888
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. PPPPOOOODDDD((((4444))))                           IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                            PPPPOOOODDDD((((4444))))
  533.  
  534.  
  535.  
  536.                          should either be left empty or set to 0.
  537.  
  538.      _M_e_d_i_a _T_y_p_e          A list of the output media types supported by the
  539.                          printer. Typical items would be _B_o_n_d _P_a_p_e_r and
  540.                          _T_r_a_n_s_p_a_r_e_n_c_y _F_i_l_m.
  541.  
  542.      _D_e_f_a_u_l_t _M_T          The index into the _M_e_d_i_a _T_y_p_e list indicating the
  543.                          default media.  This index is based at one rather
  544.                          than zero. Thus, the first media in the list is at
  545.                          position 1, the second at 2, and so on. If there are
  546.                          no media types listed, this entry should either be
  547.                          left empty or set to 0.
  548.  
  549.      _S_i_z_e _T_a_b_l_e _E_n_t_r_y    This entry describes a particular media size that is
  550.                          supported by the printer.  Typically these is one
  551.                          _S_i_z_e _T_a_b_l_e _E_n_t_r_y per supported media size (e.g.  an
  552.                          entry for A size and B size). The media size entry
  553.                          has seven required fields and two optional fields.
  554.                          All fields are separated by whitespace.
  555.  
  556.                          The first field contains the media size name keyword
  557.                          (e.g. _A). The list of possible media sizes can be
  558.                          found in the file /_u_s_r/_i_n_c_l_u_d_e/_p_o_d._h. The media size
  559.                          keyword is simply the media size name listed in _p_o_d._h
  560.                          with the PPPPDDDD____SSSSIIIIZZZZEEEE____ prefix removed. The size names
  561.                          listed in _p_o_d._h with the suffix ____LLLLAAAANNNNDDDD indicate
  562.                          landscape orientation and should not not be used as a
  563.                          media size keyword. Media with landscape orientation
  564.                          is indicated by the width and height fields of the
  565.                          size table entry.
  566.  
  567.                          The next two fields are the media imageable width and
  568.                          height expressed in dots.  Typically the imageable
  569.                          dimensions are derived by subtracting the margins
  570.                          from the total media size and converting the result
  571.                          to dots.
  572.  
  573.                          The next two fields are the overall media width and
  574.                          height expressed in inches.
  575.  
  576.                          The last two required fields are the left and top
  577.                          margins expressed in inches.
  578.  
  579.                          The first optional field specifies the printing
  580.                          raster direction. Refer to _p_o_d._h for the values that
  581.                          may be specified in this field.
  582.  
  583.                          The second optional field is the media validation
  584.                          mask. This mask can be used to differentiate among
  585.                          media entries that have the same media name but
  586.                          differ in other respects (e.g. resolution). The field
  587.                          is a bit mask and so to fully differentiate among
  588.  
  589.  
  590.  
  591.                                                                         PPPPaaaaggggeeee 9999
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598. PPPPOOOODDDD((((4444))))                           IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                            PPPPOOOODDDD((((4444))))
  599.  
  600.  
  601.  
  602.                          similar entries the values must be powers of two.
  603.                          Refer to the _P_D_R_e_a_d_I_n_f_o(_3) man page for more
  604.                          information on the use of this field.
  605.  
  606.                          A default _S_i_z_e _T_a_b_l_e _E_n_t_r_y is always add to the end
  607.                          of the table when it is read by _l_i_b_p_o_d. This default
  608.                          entry is:
  609.  
  610.  
  611.                          A 2250 3000  8.500 11.000 0.500 0.500 0x00 0xFF
  612.  
  613. SSSSTTTTAAAATTTTUUUUSSSS FFFFIIIILLLLEEEE FFFFOOOORRRRMMMMAAAATTTT
  614.      This section describes the printer status file format. The status file is
  615.      installed in /_v_a_r/_s_p_o_o_l/_l_p/_p_o_d with the name <_p_r_i_n_t_e_r _n_a_m_e>._s_t_a_t_u_s.
  616.  
  617.      The general format for config file entries is:
  618.  
  619.      <keyfield> <separator> [<infofield>] <endline>
  620.  
  621.      where <infofield> is specified by the table below. The NNNNuuuummmmbbbbeeeerrrr ooooffff CCCCoooolllloooorrrrssss
  622.      <infofield> has the format <dataentry> defined as:
  623.  
  624.      <dataentry>:   <int> [<keyword> <int> <keyword>]
  625.  
  626.      The EEEErrrrrrrroooorrrr, WWWWaaaarrrrnnnniiiinnnngggg and IIIInnnnffffoooorrrrmmmmaaaattttiiiioooonnnn message <infofield> has the format
  627.      <msgentry> defined as:
  628.  
  629.      <msgentry>:   <hbyte> [<hbyte> [<hbyte>]] <separator> <string>
  630.  
  631.  
  632.      All entries in the status file are optional. Entries that are not
  633.      provided or that have no <infofield> will be assigned default values.
  634.      However, since the status file is the only means to indicate printer
  635.      status to the user, it is strongly suggested that a complete status file
  636.      be provided by the developer and that the printer driver update the
  637.      status file to reflect the printer's current status.
  638.  
  639.               KKKKeeeeyyyy FFFFiiiieeeelllldddd            <<<<iiiinnnnffffooooffffiiiieeeelllldddd>>>>        DDDDeeeeffffaaaauuuulllltttt
  640.               ______________________________________________________
  641.               OOOOppppeeeerrrraaaattttiiiioooonnnnaaaallll SSSSttttaaaattttuuuussss   <keyword>          Idle
  642.               MMMMeeeeddddiiiiaaaa SSSSiiiizzzzeeee           <keyword> [Land]   A
  643.               MMMMeeeeddddiiiiaaaa TTTTyyyyppppeeee           <keyword>          Paper
  644.               NNNNuuuummmmbbbbeeeerrrr ooooffff CCCCoooolllloooorrrrssss     <dataentry>        1 k 1 chunky
  645.               PPPPrrrriiiinnnntttteeeerrrr OOOOppppttttiiiioooonnnnssss      <string>           (empty string)
  646.               VVVVaaaalllliiiiddddaaaattttiiiioooonnnn MMMMaaaasssskkkk      <hbyte>            0
  647.               EEEErrrrrrrroooorrrr                <msgentry>         (no message)
  648.               WWWWaaaarrrrnnnniiiinnnngggg              <msgentry>         (no message)
  649.               IIIInnnnffffoooorrrrmmmmaaaattttiiiioooonnnn          <msgentry>         (no message)
  650.  
  651.      _O_p_e_r_a_t_i_o_n_a_l _S_t_a_t_u_s  Keyword specifying the current operational status of
  652.                          the printer. The possible values are:
  653.  
  654.  
  655.  
  656.  
  657.                                                                        PPPPaaaaggggeeee 11110000
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664. PPPPOOOODDDD((((4444))))                           IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                            PPPPOOOODDDD((((4444))))
  665.  
  666.  
  667.  
  668.                          IIIIddddlllleeee
  669.                          BBBBuuuussssyyyy
  670.                          FFFFaaaauuuulllltttteeeedddd
  671.                          UUUUnnnnaaaavvvvaaaaiiiillllaaaabbbblllleeee
  672.  
  673.  
  674.                          The status FFFFaaaauuuulllltttteeeedddd indicates that there is a problem
  675.                          with the printer or with communication to the
  676.                          printer. The UUUUnnnnaaaavvvvaaaaiiiillllaaaabbbblllleeee designation is similar to
  677.                          the FFFFaaaauuuulllltttteeeedddd state and is intended to provide an
  678.                          additional problem description state.
  679.  
  680.      _M_e_d_i_a _S_i_z_e          Keyword indicating the currently loaded media size.
  681.                          The media size keywords are listed in the file _p_o_d._h.
  682.                          The keyword is the size name listed with the PPPPDDDD____SSSSIIIIZZZZEEEE____
  683.                          prefix removed. The size names listed in _p_o_d._h with
  684.                          the suffix ____LLLLAAAANNNNDDDD indicate landscape orientation and
  685.                          are specified in the entry by the keyword LLLLaaaannnndddd.
  686.  
  687.      _M_e_d_i_a _T_y_p_e          This keyword indicates the currently loaded media
  688.                          type. The value is PPPPaaaappppeeeerrrr, TTTTrrrraaaannnnssssppppaaaarrrreeeennnnccccyyyy, OOOOtttthhhheeeerrrr or
  689.                          UUUUnnnnkkkknnnnoooowwwwnnnn.
  690.  
  691.      _N_u_m_b_e_r _o_f _C_o_l_o_r_s    This field specifies not only the number of output
  692.                          colors but the colorspace, depth and organization of
  693.                          the output data. There are one required and three
  694.                          optional fields. For proper operation of printing
  695.                          filters it is strongly recommended that the optional
  696.                          fields be specified.
  697.  
  698.                          The first field is required and specifies the number
  699.                          of output colors that the printer can currently
  700.                          print. If only this field is present the following
  701.                          defaults will apply:
  702.  
  703.  
  704.                                    #### CCCCoooolllloooorrrrssss   CCCCoooolllloooorrrr   DDDDeeeepppptttthhhh   OOOOrrrrgggg....
  705.                                    _________________________________
  706.                                    1          k       1       chunky
  707.                                    3          cmy     1       chunky
  708.                                    4          cmyk    1       chunky
  709.  
  710.                          The optional (but recommended) three fields
  711.                          explicitly specify the output colorspace, depth and
  712.                          organization of the output data. The colorspace field
  713.                          is one of:
  714.  
  715.                          kkkk
  716.                          ccccmmmmyyyy
  717.                          ccccmmmmyyyykkkk
  718.                          wwww
  719.                          rrrrggggbbbb
  720.  
  721.  
  722.  
  723.                                                                        PPPPaaaaggggeeee 11111111
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730. PPPPOOOODDDD((((4444))))                           IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                            PPPPOOOODDDD((((4444))))
  731.  
  732.  
  733.  
  734.                          yyyymmmmcccc
  735.                          yyyymmmmcccckkkk
  736.                          kkkkccccmmmmyyyy
  737.  
  738.                          The depth field specifies the number of bits per
  739.                          color component and may be one of 1111, 4444, 8888. The data
  740.                          organization field is one of:
  741.  
  742.                          cccchhhhuuuunnnnkkkkyyyy
  743.                          ppppllllaaaannnnaaaarrrr
  744.  
  745.                          An example output specification is:
  746.  
  747.                          3 rgb 4 planar
  748.  
  749.                          This specifies a three color RGB output with four
  750.                          bits per component (12 bits total) and a planar data
  751.                          organization.  Refer to the _l_i_b_s_t_i_f_f(_3) man page for
  752.                          additional information on raster data output formats.
  753.  
  754.      _P_r_i_n_t_e_r _O_p_t_i_o_n_s     This field can be used to describe currently
  755.                          installed optional equipment or configurations. This
  756.                          field is also used to indicate the current printer
  757.                          resolution for printers that allow multiple output
  758.                          resolutions. To indicate the current resolution the
  759.                          string:
  760.  
  761.                          CCCCuuuurrrrrrrreeeennnnttttRRRReeeessss ==== <int> x <int>
  762.  
  763.                          is specified. The first integer is the horizontal
  764.                          resolution in dots per inch and the second integer is
  765.                          the vertical resolution in the same units.  The
  766.                          current resolution values are used by printing
  767.                          filters such as the PostScript interpreter _p_s_r_i_p(_1).
  768.  
  769.      _V_a_l_i_d_a_t_i_o_n _M_a_s_k     The validation mask can be used to select among media
  770.                          size entries in the config file that have the same
  771.                          media name but differ in other respects (e.g.
  772.                          resolution). The field is a bit mask and so to fully
  773.                          differentiate among similar entries the values must
  774.                          be powers of two. The default value, 0, will select
  775.                          the first media entry whose name matches the
  776.                          specified media name. Refer to the _P_D_R_e_a_d_S_t_a_t_u_s(_3)
  777.                          man page for more information on the use of this
  778.                          field.
  779.  
  780.      _E_r_r_o_r, _W_a_r_n_i_n_g, _I_n_f_o_r_m_a_t_i_o_n
  781.                          These three entries indicate messages written by the
  782.                          printer driver to provide information to the printer
  783.                          user regarding the state of the printer.  The three
  784.                          hex bytes provide a message code. The available
  785.                          message codes are listed in _p_o_d._h (PPPPDDDD____EEEERRRRRRRROOOORRRR____****). The
  786.  
  787.  
  788.  
  789.                                                                        PPPPaaaaggggeeee 11112222
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796. PPPPOOOODDDD((((4444))))                           IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                            PPPPOOOODDDD((((4444))))
  797.  
  798.  
  799.  
  800.                          low order three bytes of the codes listed in _p_o_d._h
  801.                          are the codes specified in this field. The high order
  802.                          byte of the code is implied by the first field (i.e.
  803.                          _I_n_f_o_r_m_a_t_i_o_n = 00, _W_a_r_n_i_n_g == 01, _E_r_r_o_r = _0_2). The
  804.                          last field is a string providing the text for the
  805.                          message. There can be up to PPPPDDDD____MMMMEEEESSSSSSSSAAAAGGGGEEEE____MMMMAAAAXXXX (see
  806.                          _p_o_d._h) message entries in a status file.  An example
  807.                          of a complete message entry is:
  808.  
  809.                          Information | 01 00 00 | version: driver = 00.00
  810.  
  811.  
  812. LLLLOOOOGGGG FFFFIIIILLLLEEEE FFFFOOOORRRRMMMMAAAATTTT
  813.      The log file is not currently implemented. Developer's should supply an
  814.      empty file in /_v_a_r/_s_p_o_o_l/_l_p/_p_o_d with the name <_p_r_i_n_t_e_r _n_a_m_e>._l_o_g.
  815.  
  816. FFFFIIIILLLLEEEESSSS
  817.      /var/spool/lp/pod/<printer name>.config   Configuration file
  818.      /var/spool/lp/pod/<printer name>.status   Status file
  819.      /var/spool/lp/pod/<printer name>.log      Log file
  820.  
  821. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  822.      libpod(3), podd(1M), libstiff(3), psrip(1)
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.                                                                        PPPPaaaaggggeeee 11113333
  856.  
  857.  
  858.  
  859.